﻿
namespace Cos.Module.Blog.NHibernate.Test
{
    using System;

    using Cos.Core.NHibernate;

    using FluentNHibernate.Testing;

    using NUnit.Framework;

    [TestFixture]
    public class BlogSubscriberDataModelFixture : BlogFixtureBase
    {
        [Test]
        public void CanMapBlogSubscriberDataModel()
        {
            new PersistenceSpecification<BlogSubscriberDataModel>(Session)
                .CheckProperty(x => x.SuscriberId, Guid.NewGuid())
                .CheckProperty(x => x.CreationDate, new DateTime(2000, 1, 1))
                .CheckProperty(x => x.Email, "gkhawaja@alogient.com")
                //.CheckReference(x => x.BlogId, this.Blog.Id)
                .VerifyTheMappings();
        }
    }
}
